package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.ygs.secs.mapper.FamilyMemberMapper;
import com.ygs.secs.model.FamilyMember;

import java.util.List;

import com.ygs.secs.service.FamilyMemberService;

@Service
public class FamilyMemberServiceImpl implements FamilyMemberService {

    @Resource
    private FamilyMemberMapper familyMemberMapper;

    @Override
    public int deleteByPrimaryKey(Integer memberid) {
        return familyMemberMapper.deleteByPrimaryKey(memberid);
    }

    @Override
    public int insert(FamilyMember record) {
        return familyMemberMapper.insert(record);
    }

    @Override
    public int insertSelective(FamilyMember record) {
        return familyMemberMapper.insertSelective(record);
    }

    @Override
    public FamilyMember selectByPrimaryKey(Integer memberid) {
        return familyMemberMapper.selectByPrimaryKey(memberid);
    }

    @Override
    public int updateByPrimaryKeySelective(FamilyMember record) {
        return familyMemberMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(FamilyMember record) {
        return familyMemberMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<FamilyMember> list) {
        return familyMemberMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<FamilyMember> list) {
        return familyMemberMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<FamilyMember> list) {
        return familyMemberMapper.batchInsert(list);
    }

    @Override
    public List<FamilyMember> getfamilymemberBystuid(String stuid) {
        return familyMemberMapper.getfamilymemberBystuid(stuid);
    }

}

